import request from '@/config/axios'

export const getPlatformPage = async (params) => {
  return await request.get({
    url: '/sectionMessage/getPlatformPage',
    params
  })
}

export const getClientPage = async (params) => {
  return await request.get({
    url: '/sectionMessage/getClientPage',
    params
  })
}

export const exportPlatformExcel = async (params) => {
  return await request.download({
    url: '/sectionMessage/exportPlatformExcel',
    params
  })
}

export const exportClientExcel = async (params) => {
  return await request.download({
    url: '/sectionMessage/exportClientExcel',
    params
  })
}

export const approveFn = async (data) => {
  return await request.put({
    url: '/sectionMessage/approve',
    data
  })
}

export const getBidRecordList = async (params) => {
  return await request.get({
    url: '/bidRecord/getPage',
    params
  })
}

export const exportBidRecordExcel = async (params) => {
  return await request.download({
    url: '/bidRecord/exportBidRecordExcel',
    params
  })
}
